@import "lib/variable";

body {
  font-family: 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', Helvetica, Arial, sans-serif;
}

/*覆盖swiper的默认样式*/
.swiper-html, .swiper-body, .container {
  position: relative;
  height: 100%;
}

.container {
  position: relative;
  z-index: 12;
  padding: 15rem / @remUnit;
  box-sizing: border-box;
  transition: all 0.4s ease-in-out;
}

.swiper-container {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.cancleFullScreen.hidden {
  display: none;
}

.swiper-slide {
  display: flex;
  background: transparent;
  overflow: hidden;
}

.swiper-body .swiper-container-vertical {
  > .swiper-pagination-bullets{
    left: 70rem / @remUnit;
    width: 16rem / @remUnit;
  }

  .swiper-pagination-bullet {
    width: 14rem / @remUnit;
    height: 14rem / @remUnit;
    margin: 28rem / @remUnit 0;
    background: #fff;
    opacity: 0.4;
  }

  .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
  }
}
.swiper-wrapper {
  box-sizing: border-box;
}

.swiper-wrapper .swiper-slide {
  position: relative;
}
.swiper-button-dowm {
  margin: 0;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 40rem / @remUnit;
  width: 40rem / @remUnit;
  height: 33rem / @remUnit;
  background: url("../images/next.png") no-repeat center / contain;
  transform: translateX(-50%);
}

/* 视频样式 */
.video-js {
  position: relative;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background-color: transparent;
}

video {
  opacity: 0;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
}

video.visible {
  opacity: 1;
}

.cancleFullScreen {
  position: absolute;
  right: 46rem / @remUnit;
  top: 35rem / @remUnit;
  height: 32rem / @remUnit;
  width: 32rem / @remUnit;
  z-index: 10;
  border-radius: 100%;
  background: url("../images/close.png") no-repeat center / 70%;
  cursor: pointer;
}

/*四条装饰性边框，切换屏幕更换颜色*/
.top-border {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 15rem / @remUnit;
  transition: all 0.4s ease-in-out;
}

.slide0 .top-border {
  background-image: linear-gradient(to right, @firstPageLeftTopColor, @firstPageRightTopColor);
}

.slide1 .top-border {
  background-image: linear-gradient(to right, @secondPageLeftTopColor, @secondPageRightTopColor);
}

.slide2 .top-border {
  background-image: linear-gradient(to right, @thirdPageLeftTopColor 50%, @thirdPageRightTopColor);
}

.slide3 .top-border {
  background-image: linear-gradient(to right, @forthPageLeftTopColor, @forthPageRightTopColor);
}

.about-slide .top-border {
  background-image: linear-gradient(to right, @aboutPageLeftTopColor, @aboutPageRightTopColor 50%);
}

.right-border {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 15rem / @remUnit;
  z-index: 61;
  transition: all 0.4s ease-in-out;
}

.slide0 .right-border {
  background-image: linear-gradient(to bottom, @firstPageRightTopColor, @firstPageRightMiddleColor, @firstPageRightBottomColor);
}

.slide1 .right-border {
  background-image: linear-gradient(to bottom, @secondPageRightTopColor, @secondPageRightBottomColor 30%);
}

.slide2 .right-border {
  background-image: linear-gradient(to bottom, @thirdPageRightTopColor, @thirdPageRightBottomColor 50%);
}

.slide3 .right-border {
  background-image: linear-gradient(to bottom, @forthPageRightTopColor, @forthPageRightBottomColor);
}

.about-slide .right-border {
  background-image: linear-gradient(to bottom, @aboutPageRightTopColor, @aboutPageRightBottomColor);
}

.bottom-border {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 15rem / @remUnit;
  z-index: 62;
  transition: all 0.4s ease-in-out;
}

.slide0 .bottom-border {
  background-image: linear-gradient(to right, @firstPageLeftBottomColor, @firstPageRightBottomColor);
}

.slide1 .bottom-border {
  background-image: linear-gradient(to right, @secondPageLeftBottomColor, @secondPageRightBottomColor);
}

.slide2 .bottom-border {
  background-image: linear-gradient(to right, @thirdPageLeftBottomColor, @thirdPageRightBottomColor);
}

.slide3 .bottom-border {
  background-image: linear-gradient(to right, @forthPageLeftBottomColor 30%, @forthPageRightBottomColor);
}

.about-slide .bottom-border {
  background-image: linear-gradient(to right, @aboutPageLeftBottomColor, @aboutPageRightBottomColor 50%);
}

.left-border {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15rem / @remUnit;
  z-index: 62;
  transition: all 0.4s ease-in-out;
}

.slide0 .left-border {
  background-image: linear-gradient(to bottom, @firstPageLeftTopColor, @firstPageLeftBottomColor);
}

.slide1 .left-border {
  background-image: linear-gradient(to bottom, @secondPageLeftTopColor, @secondPageLeftBottomColor);
}

.slide2 .left-border {
  background-image: linear-gradient(to bottom, @thirdPageLeftTopColor, @thirdPageLeftBottomColor);
}

.slide3 .left-border {
  background-image: linear-gradient(to bottom, @forthPageLeftTopColor, @forthPageLeftBottomColor);
}

.about-slide .left-border {
  background-image: linear-gradient(to bottom, @aboutPageLeftTopColor, @aboutPageLeftBottomColor);
}

/*菜单*/
.menu {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 120rem / @remUnit;
  opacity: 0;
  background-image: linear-gradient(to bottom, @menuStartColor, @menuEndColor);
  transform: translateX(-120rem / @remUnit);
  transition: all 0.4s ease-in-out;
}

.about-slide .menu {
  background-image: linear-gradient(to bottom, @aboutPageLeftTopColor, @aboutPageRightBottomColor);
}

.menu.expand {
  opacity: 1;
  transform: translateX(0);
}

.menu .close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40rem / @remUnit 0;
  //margin-bottom: 1.2rem;
  cursor: pointer;
}

.close img {
  display: block;
  height: 28rem / @remUnit;
  font-size: 0;
}

.menu > ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  flex: 1;
}

.menu li > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: @menuFontColor;
  font-size: 18rem / @remUnit;
  text-align: center;
  cursor: pointer;
}

.menu a > span {
  display: inline-block;
  padding-bottom: 7rem / @remUnit;
}

.menu li.active span {
  border-bottom: 1px solid;
}

/*logo，切换屏幕时更换背景色*/
.logo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 120rem / @remUnit;
  height: 120rem / @remUnit;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  font-size: 0;
}

.slide0 .logo {
  background-color: @firstPageLogoBgColor;
}

.slide1 .logo {
  background-color: @secondPageLogoBgColor;
}

.slide2 .logo {
  background-color: @thirdPageLogoBgColor;
}

.slide3 .logo {
  background-color: @forthPageLogoBgColor;
}

.about-slide .logo {
  background-color: @aboutPageLogoBgColor;
}

.logo img {
  display: block;
  width: 70%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 幽灵按钮效果 */
.spectre-btn {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 0 !important;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.spectre-btn span {
  position: absolute;
  background-color: #fff;
  transition: all 0.4s ease-in-out;
}

.top-line {
  top: -1px;
  left: -1px;
  width: 0;
  height: 1px;
}

.right-line {
  top: -1px;
  right: -1px;
  height: 0;
  width: 1px;
}

.bottom-line {
  right: -1px;
  bottom: -1px;
  height: 1px;
  width: 0;
}

.left-line {
  left: -1px;
  bottom: -1px;
  width: 1px;
  height: 0;
}

.spectre-btn:hover {
  color: #fff;
  .top-line {
    width: 100%;
  }
  .right-line {
    height: 100%;
  }
  .bottom-line {
    width: 100%;
  }
  .left-line {
    height: 100%;
  }
}

.zoomify { cursor: pointer; cursor: -webkit-zoom-in; cursor: zoom-in; }
.zoomify.zoomed { cursor: -webkit-zoom-out; cursor: zoom-out; padding: 0; margin: 0; border: none; border-radius: 0; box-shadow: none; position: relative; z-index: 1501; }
.zoomify-shadow { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; z-index: 1500;opacity: 0; }
.zoomify-shadow.zoomed { opacity: 1; cursor: pointer; cursor: -webkit-zoom-out; cursor: zoom-out; }
